<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <script src="bootstrap-3.3.7-dist/js/jquery-3.4.1.min.js"></script>
    <script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</head>
<style>
    .box {
        height: 200px;
        width: 200px;
        border-radius: 50%;
        background-color: green;
        line-height: 200px;
        text-align: center;
        font-size: 120px;
        color: white;
        margin: 100px auto;
    }
    h1 {
        font-size: 50px;
    }
    .layout {
        width: 375px;
        height: 667px;
        margin: 50px auto;
        border: solid gray 2px;
        text-align: center;
    }
</style>
<body>
<div class="layout">
<div class="box"><span class="glyphicon glyphicon-ok"></span></div>
<h1>支付成功</h1>
    <button type="button" class="btn btn-success" name="back">返回首页 <span class="glyphicon glyphicon-menu-right"></span></button>
    <button type="button" class="btn btn-success" name="details">查看详情 &nbsp</button>
</div>
</body>
<script>
    $("button[name='back']").on("click",function () {
        window.location.href="index.html"
    })
    $("button[name='details']").on("click",function () {
        window.location.href="details.html"
    })
</script>
</html>